package designpattern.chainresponsibility.order;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 刘牌
 * @Date: 2021/12/18/23:07
 * @Description:
 */
public class HangOrderHandler extends OrderHandler {
    @Override
    public void hand(Order order) {
        if (order.getHangOrderPersonId() != null){
            System.out.println("进行一系列挂账操作");
            return;
        }
        System.out.println("此订单未挂单");
        orderHandler.hand(order);
    }
}
